<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<html>
<head>
<title>Human Mirror 1.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
body,table,hr {
	color: black;
	background: silver;
	font-family: Verdana, sans-serif;
	font-size: x-small;
}
</style>

</head>
<body>
	<h2>Human Mirror 1.0</h2>
	<c:set var="user" value="${sessionScope.user}" />
	<c:choose>
		<c:when test="${user == null}">
			not logged in
		</c:when>
		<c:otherwise>
			Logged as <c:out value="${sessionScope.user}" />
		</c:otherwise>

	</c:choose>
	<fieldset>
		<legend>
			<b>Human Mirror 1.0</b>
		</legend>
		<c:choose>
			<c:when test="${user == null}">
				<a href="login.jsp">Login</a><br>
				<a href="register.jsp">Register</a>
			</c:when>
			<c:otherwise>
				<a href="logoutAction.perform">Logout</a><br>
				<a href="quizAction.perform">Start Quiz</a>
			</c:otherwise>
		</c:choose>
	</fieldset>
</body>
</html>